package com.cd.price.jpa.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @Description  参与比价的商品列表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/
//@Entity
@Data
@Table(name = "db_price_good",
        indexes = {
                @Index(name = "idx_brand", columnList = "brand")})
@NoArgsConstructor
@AllArgsConstructor
public class GoodList {

    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //品牌
    @Column(name = "brand")
    private String brand;

    //商品名称
    @Column(name = "name")
    private String name;

    //配置参数
    @Column(name = "param")
    private String param;

    //上传用户
    @Column(name = "owner")
    private String owner;

    //是否废弃 已购买的话则废弃 默认不展示 考虑复购的快速查价
    //只允许自己和管理员进行删除 如果有人关注 则转让？禁止删除？
    @Column(name = "is_deleted")
    private Boolean isDeleted;
}
